<template>
  <div>
    <swipe :imgList="imgList"></swipe>
    <ul class="mui-table-view mui-grid-view mui-grid-9">
        <routerLink to="/home/newList" class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-home"></span>
                <div class="mui-media-body">新闻咨询</div></a></routerLink>
        <routerLink to="/home/imglist" class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-email"><span class="mui-badge">5</span></span>
                <div class="mui-media-body">图案分享</div></a></routerLink>
        <routerLink to="/home/goodslist" class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-chatbubble"></span>
                <div class="mui-media-body">商品购买</div></a></routerLink>
        <routerLink to="" class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-location"></span>
                <div class="mui-media-body">留言反馈</div></a></routerLink>
        <routerLink to="" class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-search"></span>
                <div class="mui-media-body">视频专区</div></a></routerLink>
        <routerLink to="" class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-phone"></span>
                <div class="mui-media-body">联系我们</div></a></routerLink>
        <routerLink to="" class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-gear"></span>
                <div class="mui-media-body">Setting</div></a></routerLink>
        <routerLink to="" class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-info"></span>
                <div class="mui-media-body">about</div></a></routerLink>
        <routerLink to="" class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <span class="mui-icon mui-icon-more"></span>
                <div class="mui-media-body">more</div></a></routerLink>
        </ul>
  </div>
</template>

<script>
import {api} from '@/common/api.js'
import swipe from '@/components/subComps/swipe'
export default {
  data () {
    return {
      imgList: []
    }
  },
  created () {
    this.getLunBo()
  },
  methods: {
    getLunBo () {
      this.$axios.get(`${api}getlunbo`).then(res => {
        this.imgList = res.data.message
      }).catch(err => {
        console.log(err)
      })
    }
  },
  components: {
    swipe
  }
}
</script>
